package com.springboot.study.tests.supplier;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.function.Supplier;

/**
 * @Author: guodong
 * @Date: 2020/11/26 10:57
 * @Version: 1.0
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cat {


    private Long id;

    private String name;

    private Date birthDay;

    public static Cat creat(Supplier<Cat> catSupplier){
        Cat cat = catSupplier.get();
        return cat;
    }



}
